<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>
<div id="content" class="span10">
	<!-- content starts -->
	<div>
		<ul class="breadcrumb">
			<li>
				<a href="/<{$current_class}>">FAQ管理</a> <span class="divider">/</span>
			</li>
			<li>
				<a href="javascript:void(0);"><{$action}></a>
			</li>
		</ul>
	</div>

	<div class="row-fluid sortable">
		<div class="box span12">
			<div class="box-header well" data-original-title>
				<h2><{$action}></h2>
			</div>
			<div class="box-content">
				<form class="form-horizontal" method="post" enctype="multipart/form-data" action="/<{$current_class}>/save">
					<input type="hidden" name="id" value="<{$info['id']|default:"0"}>" />
			  		<fieldset>
						<div class="control-group oi_re">
					  		<label class="control-label" for="typeahead"><font color="red">*</font>名称： </label>
						  	<div class="controls">
								<input type="text" class="inputxt-xlarge Validform_error " datatype="*" id="date01" name="name" value="<{$info['name']|default:""}>">
						  	</div>
						  	<div class="Validform_checktip oi_ab ab_380px"></div>
						</div>
						<div class="control-group" id="upload_main">
						  	<label class="control-label" for="date01">分类：</label>
							<div class="controls ysx_video">
								<select name="cid" id="cid">
									<{if isset($info.cid)}>
										<{foreach from=$cate_list item=item}>
											<option value="<{$item.id}>" <{if isset($info.cid) && $item.id==$info.cid}>selected=selected<{/if}>><{$item.name}></option>
										<{/foreach}>
									<{else}>
									<{foreach from=$cate_list item=item}>
										<option value="<{$item.id}>" <{if isset($info.cid) && $item.id==$info.cid}>selected<{/if}>><{$item.name}></option>
									<{/foreach}>
									<{/if}>
								</select>
							</div>
						</div>
						<div class="control-group oi_re">
						  	<label class="control-label" for="typeahead" >内容： </label>
						  	<div class="controls">
						  		<textarea class="cleditor" id="introduces" name="content"><{$info['content']|default:"&nbsp;"}></textarea>
						  	</div>
	                      	<div class="Validform_checktip oi_ab ab_380px"></div>
						</div>
						<div class="control-group oi_re">
						  	<label class="control-label" for="typeahead" >排序： </label>
						  	<div class="controls">
						  		<input type="text" onafterpaste="this.value=this.value.replace(/\D/g,'')" onkeyup="this.value=this.value.replace(/\D/g,'')" name="sort" class="inputxt-xlarge" maxlength="4" value="<{$info['sort']|default:""}>" style="width:40px;" />
						  	</div>
	                      	<div class="Validform_checktip oi_ab ab_380px"></div>
						</div>
						<div class="control-group oi_re">
						  	<label class="control-label" for="typeahead" >是否启用： </label>
						  	<div class="controls">
						  		<{assign var="status" value=$info['status']|default:"1"}>
						  		<label class="radio">
									<div class="radio" id="uniform-optionsRadios1" style="float:left;"><span class="checked"><input type="radio" name="status" id="optionsRadios1" value="1" <{if $status == 1}>checked="checked"<{/if}>></span></div>是
							  	</label>
							  	<div style="clear:both"></div>
							  	<label class="radio">
									<div class="radio" id="uniform-optionsRadios2" style="float:left;"><span><input type="radio" name="status" id="optionsRadios2" value="0" <{if $status == 0}>checked="checked"<{/if}>></span></div>否
							  	</label>
						  	</div>
	                      	<div class="Validform_checktip oi_ab ab_380px"></div>
						</div>  
						<div class="form-actions">
						  	<button type="submit" class="btn btn-primary">保存</button>
						  	<button type="reset" class="btn">重置</button>
						</div>
				  	</fieldset>
				</form>   
				
			</div>
		</div><!--/span-->
	</div><!--/row-->
			<!-- content ends -->
	</div><!--/#content.span10-->
		</div><!--/fluid-row-->

<{include file="public_html/footer.html"}>